#pragma once
#include "CAnimal.h"
#include "CGrass.h"
#include "CMapp.h"
#include "CSheep.h"
#include "CWolf.h"
#include <opencv2\opencv.hpp>
#include <vector>
#include <iostream>

using namespace std;

class CEngin
{
public:
	CEngin();
	~CEngin();
	CMapp m_map;
	CGrass m_grass;
	int m_grassloc[11][11];
	double m_dist;
	vector<CGrass*> m_grassvec;
	IplImage *m_copybk;
	vector<CAnimal *>animalvec;
	void Init();
	void RandGenera(int n);
	void Eat(int n);
	void ReleaseEcosystem();
};

